package com.xx.sg.own.entity;

import com.alibaba.fastjson2.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("sg_dept")
public class Dept {
    @TableId(value = "id", type = IdType.ASSIGN_UUID)
    @JSONField(name = "id")
    private String id;

    @TableField(value = "dept_id")
    @JSONField(name = "dept_id")
    private String deptId;

    @TableField(value = "dept_name")
    @JSONField(name = "dept_name")
    private String deptName;

    @TableField(value = "parent_dept_id")
    @JSONField(name = "parent_dept_id")
    private String parentDeptId;

    @TableField(value = "parent_dept_name")
    @JSONField(name = "parent_dept_name")
    private String parentDeptName;

    @TableField(value = "leader")
    @JSONField(name = "leader")
    private String leader;

    @TableField(value = "phone")
    @JSONField(name = "phone")
    private String phone;

    @TableField(value = "order_num")
    @JSONField(name = "order_num")
    private Integer orderNum;

    @TableField(value = "status")
    @JSONField(name = "status")
    private String status;

    @TableField(value = "email")
    @JSONField(name = "email")
    private String email;

}











